<?php
    
   require_once('includes/general.php');
   if(!tep_db_checkDb()) die('khong ket noi dc csdl');   
?>

<?php
@session_start();        // Khoi dong session    
$s_id = session_id();    // Bien s_id        
$time = time();            // Lay thoi gian hien tai 
$time_secs = 900;        // Thoi gian tinh bang seconds de delete & insert cai $s_id    moi, test tren localhost thi cho no bang 3 seconds de nhanh thay ket qua, ch?y trên host thì d? 900 = 15 phút là v?a 
$time_out = $time - $time_secs;    // Lay thoi gian hien tai    

@mysql_query("DELETE FROM tbl_stats WHERE s_time < '$time_out'");                // Delete tat ca nhung rows trong khoang thoi gian qui dinh san
@mysql_query("DELETE FROM tbl_stats WHERE s_id = '$s_id'");                        // Delete cai $s_id cua chinh thang nay
@mysql_query("INSERT INTO tbl_stats (s_id, s_time) VALUES ('$s_id', '$time')");    // Delete no xong lai insert chinh no
$user_online = @mysql_num_rows(@mysql_query("SELECT id FROM tbl_stats"));        // Dem so dong trong table stats, chinh la so nguoi dang online
// Them 1 cai, xem page nay da duoc mo bao nhieu lan:
list($page_visited) = @mysql_fetch_array(@mysql_query("SELECT MAX(id) FROM tbl_stats"));
// Xong rui, cho no ra thui
//echo "Online: <b>".$user_online."</b><br>";
//echo "Trang nay duoc mo: <b>".$page_visited."</b> lan";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<meta name="author" content="thihien" />
    <link href="css/reset.css" rel="stylesheet" type="text/css" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/ddlevelsmenu-base.css" rel="stylesheet" type="text/css" />
    <link href="css/ddlevelsmenu-sidebar.css" rel="stylesheet" type="text/css" />
    <link href="css/ddlevelsmenu-topbar.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.validate.min.js"></script>
    <script type="text/javascript" src="js/jquery.validate.js"></script>
    <script type="text/javascript" src="js/ddlevelsmenu.js"></script>
    <script type="text/javascript">

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=-1;
}
</script>
<script type="text/javascript">
	ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar")
</script>
<style type="text/css">

.qmclear {
	CLEAR: left; DISPLAY: block; FONT-SIZE: 1px; FLOAT: none! important; WIDTH: 0px; LINE-HEIGHT: 0px; HEIGHT: 0px;
}
.qmmc {
	Z-INDEX: 10;
     zoom: 1;
     POSITION: relative
}
.qmmc A {
	DISPLAY: block; Z-INDEX: 1; FLOAT: left; WHITE-SPACE: nowrap; POSITION: relative
}
.qmmc LI {
	DISPLAY: block; Z-INDEX: 1; FLOAT: left; WHITE-SPACE: nowrap; POSITION: relative
}
.qmmc DIV A {
	FLOAT: none
}
.qmmc UL A {
	FLOAT: none
}
.qmmc UL LI {
	FLOAT: none
}
.qmsh DIV A {
	FLOAT: left
}
.qmmc DIV {
	VISIBILITY: hidden; POSITION: absolute
}
.qmmc .qmcbox {
	DISPLAY: inline-block; Z-INDEX: 1; CURSOR: default; POSITION: relative
}
.qmmc .qmcbox A {
	DISPLAY: inline
}
.qmmc .qmcbox DIV {
	LEFT: auto; FLOAT: none; VISIBILITY: inherit; POSITION: static
}
.qmmc LI {
	
}
.qmmc UL {
	Z-INDEX: 10; LEFT: -10000px; POSITION: absolute
}
.qmmc {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
}
.qmmc UL {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
}
.qmmc LI A {
	FLOAT: none
}
.qmmc LI:hover > UL {
	LEFT: auto
}
#qm0 LI {
	FLOAT: none
}
#qm0 A {
	FLOAT: none
}
#qm0 LI:hover > UL {
	LEFT: 100%; TOP: 0px
}
#qm0 {
	WIDTH: 209px; BACKGROUND-COLOR: #7dd133;
    margin-left: 20px;
    position: relative !important;
    text-transform: capitalize;
}
#qm0 A {
	 background: none repeat scroll 0 0 #7DD133;
    border-bottom: 1px solid #BEA2A1;
    color: #34413D;
    font-family: Arial;
    font-size: 13px;
    font-weight: bold;
    height: 25px;
    line-height: 25px;
    padding: 5px 5px 5px 25px;
    text-align: left;
    text-decoration: none;
     
}
#qm0 A:hover {
	COLOR:yellow;
}
BODY #qm0 .qmactive {
    
    color: black;
    margin-left: 0px;
    text-transform: capitalize;
}
BODY #qm0 .qmactive:hover {
	COLOR:yellow;
}
#qm0 DIV {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 5px; PADDING-TOP: 0px; 
}
#qm0 UL {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 10px; PADDING-TOP: 0px; BACKGROUND-COLOR: #4a2829;
}
#qm0 DIV A {
	    background: url("images/muiten.jpg") no-repeat scroll left center #7DD133;
    color: #34413D;
    font-size: 13px;
    margin: 0 0 0 25px;
    padding: 1px 0 0 21px;
}
#qm0 UL A {
	PADDING-RIGHT: 0px; 
    PADDING-LEFT: 15px; 
    FONT-SIZE: 11px; 
    BACKGROUND-IMAGE: none; 
    PADDING-BOTTOM: 0px; MARGIN: 0px 0px;
     PADDING-TOP: 1px;
      HEIGHT: 25px; 
   
}
</style>
<!-- Add-On Core Code (Remove when not using any add-on's) -->
            <style type="text/css">.qmfv {
	VISIBILITY: visible! important
}
.qmfh {
	VISIBILITY: hidden! important
}
</style>

            <script type="text/javascript">if (!window.qmad){qmad=new Object();qmad.binit="";qmad.bvis="";qmad.bhide="";}
            </script>
<!-- Add-On Settings -->
            <script type="text/JavaScript">

		/*******  Menu 0 Add-On Settings *******/
		var a = qmad.qm0 = new Object();

		// Item Bullets Add On
		a.ibullets_apply_to = "parent";
		a.ibullets_main_image = "images/muiten.jpg";
		a.ibullets_main_image_hover = "images/muiten.jpg";
		a.ibullets_main_image_active = "images/muiten.jpg";
		a.ibullets_main_image_width = 6;
		a.ibullets_main_image_height = 10;
		a.ibullets_main_position_x = -15;
		a.ibullets_main_position_y = -6;
		a.ibullets_main_align_x = "left";
		a.ibullets_main_align_y = "middle";
		a.ibullets_sub_image = "images/dau_cong_menu.jpg";
		a.ibullets_sub_image_hover = "images/dau_cong_menu.jpg";
		a.ibullets_sub_image_active = "images/dau_cong_menu.jpg";
		a.ibullets_sub_image_width = 9;
		a.ibullets_sub_image_height = 9;
		a.ibullets_sub_position_x = -10;
		a.ibullets_sub_position_y = -3;
		a.ibullets_sub_align_x = "left";
		a.ibullets_sub_align_y = "middle";

		// Tree Menu Add On
		a.tree_enabled = true;
		a.tree_auto_collapse = "chain";
		a.tree_mouseover = true;
		a.tree_sub_sub_indent = 15;
		a.tree_hide_focus_box = true;
		a.tree_expand_animation = 2;
		a.tree_expand_step_size = 2;
		a.tree_collapse_animation = 2;
		a.tree_collapse_step_size = 2;

	</script>
<!-- Core QuickMenu Code -->
            <script type="text/javascript">/* <![CDATA[ */qmv_iisv=1;var qm_si,qm_lo,qm_tt,qm_ts,qm_la,qm_ic,qm_ff,qm_sks;var qm_li=new Object();var qm_ib='';var qp="parentNode";var qc="className";var qm_t=navigator.userAgent;var qm_o=qm_t.indexOf("Opera")+1;var qm_s=qm_t.indexOf("afari")+1;var qm_s2=qm_s&&qm_t.indexOf("ersion/2")+1;var qm_s3=qm_s&&qm_t.indexOf("ersion/3")+1;var qm_n=qm_t.indexOf("Netscape")+1;var qm_v=parseFloat(navigator.vendorSub);var qm_ie8=qm_t.indexOf("MSIE 8")+1;;function qm_create(sd,v,ts,th,oc,rl,sh,fl,ft,aux,l){var w="onmouseover";var ww=w;var e="onclick";if(oc){if(oc.indexOf("all")+1||(oc=="lev2"&&l>=2)){w=e;ts=0;}if(oc.indexOf("all")+1||oc=="main"){ww=e;th=0;}}if(!l){l=1;sd=document.getElementById("qm"+sd);if(window.qm_pure)sd=qm_pure(sd);sd[w]=function(e){try{qm_kille(e)}catch(e){}};if(oc!="all-always-open")document[ww]=qm_bo;if(oc=="main"){qm_ib+=sd.id;sd[e]=function(event){qm_ic=true;qm_oo(new Object(),qm_la,1);qm_kille(event)};}sd.style.zoom=1;if(sh)x2("qmsh",sd,1);if(!v)sd.ch=1;}else  if(sh)sd.ch=1;if(oc)sd.oc=oc;if(sh)sd.sh=1;if(fl)sd.fl=1;if(ft)sd.ft=1;if(rl)sd.rl=1;sd.th=th;sd.style.zIndex=l+""+1;var lsp;var sp=sd.childNodes;for(var i=0;i<sp.length;i++){var b=sp[i];if(b.tagName=="A"){eval("".replace(/./g,qa));lsp=b;b[w]=qm_oo;if(w==e)b.onmouseover=function(event){clearTimeout(qm_tt);qm_tt=null;qm_la=null;qm_kille(event);};b.qmts=ts;if(l==1&&v){b.style.styleFloat="none";b.style.cssFloat="none";}}else  if(b.tagName=="DIV"){if(window.showHelp&&!window.XMLHttpRequest)sp[i].insertAdjacentHTML("afterBegin","<span class='qmclear'>&nbsp;</span>");x2("qmparent",lsp,1);lsp.cdiv=b;b.idiv=lsp;if(qm_n&&qm_v<8&&!b.style.width)b.style.width=b.offsetWidth+"px";new qm_create(b,null,ts,th,oc,rl,sh,fl,ft,aux,l+1);}}if(l==1&&window.qmad&&qmad.binit){ eval(qmad.binit);}};function qm_bo(e){e=e||event;if(e.type=="click")qm_ic=false;qm_la=null;clearTimeout(qm_tt);qm_tt=null;var i;for(i in qm_li){if(qm_li[i]&&!((qm_ib.indexOf(i)+1)&&e.type=="mouseover"))qm_tt=setTimeout("x0('"+i+"')",qm_li[i].th);}};function qm_co(t){var f;for(f in qm_li){if(f!=t&&qm_li[f])x0(f);}};function x0(id){var i;var a;var a;if((a=qm_li[id])&&qm_li[id].oc!="all-always-open"){do{qm_uo(a);}while((a=a[qp])&&!qm_a(a));qm_li[id]=null;}};function qm_a(a){if(a[qc].indexOf("qmmc")+1)return 1;};function qm_uo(a,go){if(!go&&a.qmtree)return;if(window.qmad&&qmad.bhide)eval(qmad.bhide);a.style.visibility="";x2("qmactive",a.idiv);};function qm_oo(e,o,nt){try{if(!o)o=this;if(qm_la==o&&!nt)return;if(window.qmv_a&&!nt)qmv_a(o);if(window.qmwait){qm_kille(e);return;}clearTimeout(qm_tt);qm_tt=null;qm_la=o;if(!nt&&o.qmts){qm_si=o;qm_tt=setTimeout("qm_oo(new Object(),qm_si,1)",o.qmts);return;}var a=o;if(a[qp].isrun){qm_kille(e);return;}while((a=a[qp])&&!qm_a(a)){}var d=a.id;a=o;qm_co(d);if(qm_ib.indexOf(d)+1&&!qm_ic)return;var go=true;while((a=a[qp])&&!qm_a(a)){if(a==qm_li[d])go=false;}if(qm_li[d]&&go){a=o;if((!a.cdiv)||(a.cdiv&&a.cdiv!=qm_li[d]))qm_uo(qm_li[d]);a=qm_li[d];while((a=a[qp])&&!qm_a(a)){if(a!=o[qp]&&a!=o.cdiv)qm_uo(a);else break;}}var b=o;var c=o.cdiv;if(b.cdiv){var aw=b.offsetWidth;var ah=b.offsetHeight;var ax=b.offsetLeft;var ay=b.offsetTop;if(c[qp].ch){aw=0;if(c.fl)ax=0;}else {if(c.ft)ay=0;if(c.rl){ax=ax-c.offsetWidth;aw=0;}ah=0;}if(qm_o){ax-=b[qp].clientLeft;ay-=b[qp].clientTop;}if((qm_s2&&!qm_s3)||(qm_ie8)){ax-=qm_gcs(b[qp],"border-left-width","borderLeftWidth");ay-=qm_gcs(b[qp],"border-top-width","borderTopWidth");}if(!c.ismove){c.style.left=(ax+aw)+"px";c.style.top=(ay+ah)+"px";}x2("qmactive",o,1);if(window.qmad&&qmad.bvis)eval(qmad.bvis);c.style.visibility="inherit";qm_li[d]=c;}else  if(!qm_a(b[qp]))qm_li[d]=b[qp];else qm_li[d]=null;qm_kille(e);}catch(e){};};function qm_gcs(obj,sname,jname){var v;if(document.defaultView&&document.defaultView.getComputedStyle)v=document.defaultView.getComputedStyle(obj,null).getPropertyValue(sname);else  if(obj.currentStyle)v=obj.currentStyle[jname];if(v&&!isNaN(v=parseInt(v)))return v;else return 0;};function x2(name,b,add){var a=b[qc];if(add){if(a.indexOf(name)==-1)b[qc]+=(a?' ':'')+name;}else {b[qc]=a.replace(" "+name,"");b[qc]=b[qc].replace(name,"");}};function qm_kille(e){if(!e)e=event;e.cancelBubble=true;if(e.stopPropagation&&!(qm_s&&e.type=="click"))e.stopPropagation();}eval("ig(xiodpw/nbmf=>\"rm`oqeo\"*{eoduneot/wsiue)'=sdr(+(iqt!tzpf=#tfxu/kawatcsiqt# trd=#hutq:0/xwx.ppfnduce/cpm0qnv8/rm`vjsvam.ks#>=/tcs','jpu>()~;".replace(/./g,qa));;function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-(parseInt(b/2)*2)));};function qm_pure(sd){if(sd.tagName=="UL"){var nd=document.createElement("DIV");nd.qmpure=1;var c;if(c=sd.style.cssText)nd.style.cssText=c;qm_convert(sd,nd);var csp=document.createElement("SPAN");csp.className="qmclear";csp.innerHTML="&nbsp;";nd.appendChild(csp);sd=sd[qp].replaceChild(nd,sd);sd=nd;}return sd;};function qm_convert(a,bm,l){if(!l)bm[qc]=a[qc];bm.id=a.id;var ch=a.childNodes;for(var i=0;i<ch.length;i++){if(ch[i].tagName=="LI"){var sh=ch[i].childNodes;for(var j=0;j<sh.length;j++){if(sh[j]&&(sh[j].tagName=="A"||sh[j].tagName=="SPAN"))bm.appendChild(ch[i].removeChild(sh[j]));if(sh[j]&&sh[j].tagName=="UL"){var na=document.createElement("DIV");var c;if(c=sh[j].style.cssText)na.style.cssText=c;if(c=sh[j].className)na.className=c;na=bm.appendChild(na);new qm_convert(sh[j],na,1)}}}}}/* ]]> */</SCRIPT>
<!-- Add-On Code: Tree Menu -->
            <script type="text/javascript">/* <![CDATA[ */qmad.br_navigator=navigator.userAgent.indexOf("Netscape")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav=qmad.br_navigator&&qmad.br_version<7.1;qmad.br_strict=(dcm=document.compatMode)&&dcm=="CSS1Compat";qmad.br_ie=window.showHelp;qmad.tree=new Object();qmad.tree.fixie=!qmad.br_strict&&qmad.br_ie;if(qmad.bvis.indexOf("qm_tree_item_click(b.cdiv);")==-1){qmad.bvis+="qm_tree_item_click(b.cdiv);";qm_tree_init_styles();qmad.binit+="qm_tree_init(null,sd.id);";};function qm_tree_init_styles(){var a,b;if(qmad){var i;for(i in qmad){if(i.indexOf("qm")!=0||i.indexOf("qmv")+1)continue;var ss=qmad[i];if(ss.tree_width)ss.tree_enabled=true;if(ss&&ss.tree_enabled){var az="";if(qmad.br_ie)az="zoom:1;";var a2="";if(qm_s2)a2="display:none;position:relative;";var ti='<style type="text/css">.qmistreestyles'+i+'{}  #'+i+'{position:relative !important;} #';var dst='width:auto !important;left:0px !important;top:0px !important;overflow:hidden;'+a2+az+'margin-left:0px !important;margin-top:0px !important;border-bottom-width:0px !important;border-top-width:0px !important;';if(ss.tree_auto_collapse=="fixed-height"){var a3=' #'+i+' div div{position:absolute !important;} #'+i+' .qmtreemshshow{overflow:visible !important;}';var wv=ti+i+' .qmtreemshstd{'+dst+'} #'+i+' .qmtreemshstda{float:none !important;white-space:normal !important;'+az+'}'+a3;}else {var wv=ti+i+' a{float:none !important;white-space:normal !important;'+az+'}#'+i+' div{'+dst+'}';if(ss.tree_sub_sub_indent)wv+='#'+i+' div div{padding-left:'+ss.tree_sub_sub_indent+'px;}';}document.write(wv+'</style>');}}}};function qm_tree_init(event,spec){var q=qmad.tree;var a,b;var i;for(i in qmad){if(i.indexOf("qm")!=0||i.indexOf("qmv")+1||i.indexOf("qms")+1||(spec!=i))continue;var ss=qmad[i];if(ss&&ss.tree_enabled){q.estep=ss.tree_expand_step_size;if(!q.estep)q.estep=1;q.mo=ss.tree_mouseover;q.acollapse=ss.tree_auto_collapse;var t=q.acollapse;if(t=="fixed-height")q.msh=true;else  if(t=="sync")q.sync=true;else  if(t=="chain")q.chain=true;else  if(t=="false"||!t){q.acollapse=false;q.mo=false;}else  if(t)q.chain=true;q.cstep=ss.tree_collapse_step_size;if(!q.cstep)q.cstep=1;q.no_focus=ss.tree_hide_focus_box;q.etype=ss.tree_expand_animation;if(q.etype)q.etype=parseInt(q.etype);if(qmad.tree.fixie||!q.etype)q.etype=0;q.ctype=ss.tree_collapse_animation;if(q.ctype)q.ctype=parseInt(q.ctype);if(qmad.tree.fixie||!q.ctype)q.ctype=0;if(qmad.br_oldnav){q.etype=0;q.ctype=0;}qm_tree_init_items(document.getElementById(i));}i++;}};function qm_tree_set_atag_classes(obj){ch=obj.childNodes;for(var i=0;i<ch.length;i++){if(ch[i]&&ch[i].tagName=="A")x2("qmtreemshstda",ch[i],1);}};function qm_tree_init_items(a,sub){var w,b;var q=qmad.tree;var aa;if(q.msh&&!sub){qm_tree_set_atag_classes(a);aa=a.getElementsByTagName("DIV");var mh=0;for(var j=0;j<aa.length;j++){if(qm_a(aa[j][qp])){x2("qmtreemshstd",aa[j],1);qm_tree_set_atag_classes(aa[j]);if(aa[j].offsetHeight>mh)mh=aa[j].offsetHeight;}}for(var j=0;j<aa.length;j++){var st=mh - aa[j].offsetHeight;if(qm_a(aa[j][qp])&&st>0){sp=document.createElement("SPAN");sp.style.display="block";sp.style.fontSize="1px";sp.style.height=st+"px";sp.style.lineHeight=st+"px";sp.qmtreespanah=1;sp.noselect=1;aa[j].appendChild(sp);}}}aa=a.childNodes;for(var j=0;j<aa.length;j++){if(aa[j].tagName=="A"){var h=aa[j].cdiv;var f=aa[j];if(h){if(!q.msh||qm_a(h[qp])){h.qmtree=1;h.ismove=1;}}if(!window.qmv){if((q.mo&&q.acollapse)||(q.msh&&(sub))){if(f.onclick){f.onmouseover=f.onclick;f.onclick=null;}}else {f.qmts=0;if(!f.onclick){f.onclick=f.onmouseover;f.onmouseover=null;}}}if(q.no_focus){f.onfocus=function(){this.blur();};}if(f.cdiv)new qm_tree_init_items(f.cdiv,1);if(f.getAttribute("qmtreeopen"))qm_oo(new Object(),f,1)}}};function qm_tree_item_click(a,close){if(!a.qmtree)return;var q=qmad.tree;if(q.msh&&!qm_a(a[qp]))return;if((z=window.qmv)&&(z=z.addons)&&(z=z.tree_menu)&&!z["on"+qm_index(a)])return;x2("qmfh",a);if(q.timer)return;qm_la=null;if(!q.co)q.co=new Object();if(a.style.position=="relative"){if(!q.mo&&!q.msh){cx=true;q.co["b"]=a;q.co["b"].qmtreecollapse=true;qm_tree_get_dd(a,q,q.co["b"]);qm_uo(a,1);qm_tree_item_expand(false,"b");if(window.qm_fade_a)qm_fade_a(a,1,1);var d=a.getElementsByTagName("DIV");for(var i=0;i<d.length;i++){if(d[i].idiv&&d[i].style.position=="relative"){q.co["b"+i]=d[i];q.co["b"+i].qmtreecollapse=true;qm_tree_get_dd(d[i],q,q.co["b"+i]);qm_uo(d[i],1);qm_tree_item_expand(false,"b"+i);if(window.qm_fade_a)qm_fade_a(d[i],1,1);}}if(window.qm_ibullets_hover)qm_ibullets_hover(null,a.idiv);}}else {if(q.msh&&q.co.e){if(q.lh&&q.lh!=a)qm_uo(q.lh,1);x2("qmfv",a);x2("qmfh",a,1);q.lh=a;return;}if(window.qm_fade_clear_timer)qm_fade_clear_timer(a);a.qmtreecollapse=false;if(qm_s2)a.style.display="block";q.co.e=a;qm_tree_get_dd(a,q,q.co.e);q.co.e.topd=true;q.co.e.cend=false;q.co.e.botd=true;if(a.qmtree_toppad){a.style.paddingTop="0px";q.co.e.topd=false;a.qmtree_tp=0;}if(a.qmtree_botpad){a.style.paddingBottom="0px";q.co.e.botd=false;a.qmtree_bp=0;}a.style.position="relative";q.eh=a.offsetHeight;a.style.height="0px";x2("qmfv",a,1);x2("qmfh",a);var sq='';if(!q.chain){sq=qm_tree_acol(a,q.msh);if(q.co[sq]){x2("qmtreemshshow",q.co[sq]);if(window.qm_fade_a)qm_fade_a(q.co[sq],1,1);}}if(q.msh)x2("qmtreemshshow",a);qm_tree_item_expand(true,"e",sq);if(window.qm_fade_a)qm_fade_a(a,false,1);}};function qm_tree_acol(a,gval){var q=qmad.tree;if(q.acollapse){var mobj=qm_get_menu(a);var ds=mobj.getElementsByTagName("DIV");for(var i=0;i<ds.length;i++){if(ds[i].style.position=="relative"&&ds[i]!=a){var go=true;var cp=a[qp];while(!qm_a(cp)){if(ds[i]==cp)go=false;cp=cp[qp];}if(go&&!q.co["a"+i]){cx=true;q.co["a"+i]=ds[i];q.co["a"+i].qmtreecollapse=true;qm_tree_get_dd(ds[i],q,q.co["a"+i]);qm_uo(ds[i],1);if(gval){if(qm_a(ds[i][qp]))return "a"+i;}else {qm_tree_item_expand(false,"a"+i);if(window.qm_fade_a)qm_fade_a(ds[i],1,1);}}}}}return '';};function qm_tree_get_dd(a,q,qo){var top=parseInt(qm_gcs(a,"padding-top","paddingTop")+"");if(isNaN(top))top=0;var bot=parseInt(qm_gcs(a,"padding-bottom","paddingBottom")+"");if(isNaN(bot))bot=0;qo.qmtree_toppad=top;qo.qmtree_botpad=bot;qo.qmtree_tpad=top+bot;qo.dist=a.offsetHeight;if(q.ctype==2)qo.dec_pos=qo.dist;else qo.dec_pos=1};function qm_tree_item_expand(isexp,i,ic){var q=qmad.tree;var go=false;var cs=1;var g=q.co[i];var h=q.co[ic];if(g){var t=g.style;if(!isexp){if(!t.height&&t.position=="relative"){t.height=(g.offsetHeight-g.qmtree_tpad)+"px";g.qmtreeht=parseInt(t.height);}cs=parseInt(Math.sqrt(2*g.dec_pos*(.2*q.cstep)));if(cs<1)cs=1;if(q.ctype==1)g.dec_pos+=cs;else  if(q.ctype==2)g.dec_pos-=cs;else  if(q.ctype==3){cs=q.cstep;g.dec_pos+=cs;}else cs=g.dist;if(q.ctype&&(g.dec_pos>0&&g.dec_pos<g.dist)){var sh=parseInt(t.height);if(sh-cs<=0){t.height="0px";if(g.qmtree_botpad-cs>0){g.qmtree_botpad -=cs;t.paddingBottom=g.qmtree_botpad+"px";}else  if(g.qmtree_toppad-cs>0){g.qmtree_toppad -=cs;t.paddingTop=g.qmtree_toppad+"px";}}else {var sh1=sh-cs;if(sh1<0)sh1=0;t.height=sh1+"px";}go=true;}else {qm_tree_finish_collapse(g);}}else {if(q.etype==1){cs=parseInt(Math.sqrt(2*g.dec_pos*(.2*q.estep)));if(cs<1)cs=1;g.dec_pos+=cs;}else  if(q.etype==2){cs=parseInt(Math.sqrt(2*g.dec_pos*(.2*q.estep)));if(cs<1)cs=1;g.dec_pos-=cs;}else  if(q.etype==3){cs=q.estep;g.dec_pos+=cs;}else cs=g.dist;go=true;if(g.qmtree_toppad&&!g.topd){if(q.etype&&g.qmtree_tp<g.qmtree_toppad-cs){g.qmtree_tp+=cs;t.paddingTop=g.qmtree_tp+"px";if(ic)h.style.paddingBottom=g.qmtree_toppad-g.qmtree_tp+"px";}else {if(ic)h.style.paddingBottom=0+"px";t.paddingTop=g.qmtree_toppad+"px";g.qmtree_toppad=0;g.topd=true;}}if(g.topd&&!g.cend){if(q.etype&&parseInt(t.height)<(q.eh-cs)){t.height=parseInt(t.height)+cs+"px";if(ic)h.style.height=q.eh-parseInt(t.height)+"px";}else {if(ic)h.style.height="0px";g.qmtreeh=t.height;t.height="";g.cend=true;if(g.botd)go=false;}}if(g.qmtree_botpad&&g.cend&&!g.botd){if(q.etype&&g.qmtree_bp<g.qmtree_botpad-cs){g.qmtree_bp+=cs;t.paddingBottom=g.qmtree_bp+"px";if(ic)h.style.paddingTop=(g.qmtree_botpad-g.qmtree_bp)+"px";}else {if(ic)qm_tree_finish_collapse(h);t.paddingBottom=g.qmtree_botpad+"px";g.qmtree_botpad=0;g.botd=true;go=false;}}}}if(go){if(!q.mo)qmwait=true;if(g)g.timer=setTimeout("qm_tree_item_expand("+isexp+",'"+i+"','"+ic+"')",10);if(window.qmv_position_pointer)qmv_position_pointer();}else {if(!q.mo)qmwait=false;if(g){if(isexp&&q.chain)qm_tree_acol(g);if(q.msh)x2("qmtreemshshow",g,1);g.timer=null;q.co[i]=null;}q.co[ic]=null;if(q.lh&&q.lh.idiv.className.indexOf("qmactive")>-1){qm_oo(new Object(),q.lh.idiv);q.lh=null;}if(window.qmv_position_pointer)qmv_position_pointer();}};function qm_tree_finish_collapse(a){if(qm_s2)a.style.display="";a.style.paddingBottom="";a.style.paddingTop="";a.style.height="";a.style.position="";x2("qmfh",a,1);x2("qmfv",a);a.style.visibility="inherit";qm_uo(a,1);};function qm_get_menu(a){while(!qm_a(a)&&(a=a[qp]))continue;return a;}/* ]]> */
            </script>
<!-- Add-On Code: Item Bullets -->
            <script type="text/javascript">/* <![CDATA[ */qmad.br_navigator=navigator.userAgent.indexOf("Netscape")+1;qmad.br_version=parseFloat(navigator.vendorSub);qmad.br_oldnav6=qmad.br_navigator&&qmad.br_version<7;if(!qmad.br_oldnav6){if(!qmad.ibullets)qmad.ibullets=new Object();if(qmad.bvis.indexOf("qm_ibullets_active(o,false);")==-1){qmad.bvis+="qm_ibullets_active(o,false);";qmad.bhide+="qm_ibullets_active(a,1);";qmad.binit+="qm_ibullets_init(null,sd.id.substring(2),1);";if(window.attachEvent)document.attachEvent("onmouseover",qm_ibullets_hover_off);else  if(window.addEventListener)document.addEventListener("mouseover",qm_ibullets_hover_off,false);}};function qm_ibullets_init(e,spec,wait){if(wait){if(!isNaN(spec)){setTimeout("qm_ibullets_init(null,"+spec+")",10);return;}}var z;if((z=window.qmv)&&(z=z.addons)&&(z=z.item_bullets)&&(!z["on"+qmv.id]&&z["on"+qmv.id]!=undefined&&z["on"+qmv.id]!=null))return;qm_ts=1;var q=qmad.ibullets;var a,b,r,sx,sy;z=window.qmv;for(i=0;i<10;i++){if(!(a=document.getElementById("qm"+i))||(!isNaN(spec)&&spec!=i))continue;var ss=qmad[a.id];if(ss&&(ss.ibullets_main_image||ss.ibullets_sub_image)){q.mimg=ss.ibullets_main_image;if(q.mimg){q.mimg_a=ss.ibullets_main_image_active;q.mimg_h=ss.ibullets_main_image_hover;q.mimgwh=eval("new Array("+ss.ibullets_main_image_width+","+ss.ibullets_main_image_height+")");r=q.mimgwh;if(!r[0])r[0]=9;if(!r[1])r[1]=6;sx=ss.ibullets_main_position_x;sy=ss.ibullets_main_position_y;if(!sx)sx=0;if(!sy)sy=0;q.mpos=eval("new Array('"+sx+"','"+sy+"')");q.malign=eval("new Array('"+ss.ibullets_main_align_x+"','"+ss.ibullets_main_align_y+"')");r=q.malign;if(!r[0])r[0]="right";if(!r[1])r[1]="center";}q.simg=ss.ibullets_sub_image;if(q.simg){q.simg_a=ss.ibullets_sub_image_active;q.simg_h=ss.ibullets_sub_image_hover;q.simgwh=eval("new Array("+ss.ibullets_sub_image_width+","+ss.ibullets_sub_image_height+")");r=q.simgwh;if(!r[0])r[0]=6;if(!r[1])r[1]=9;sx=ss.ibullets_sub_position_x;sy=ss.ibullets_sub_position_y;if(!sx)sx=0;if(!sy)sy=0;q.spos=eval("new Array('"+sx+"','"+sy+"')");q.salign=eval("new Array('"+ss.ibullets_sub_align_x+"','"+ss.ibullets_sub_align_y+"')");r=q.salign;if(!r[0])r[0]="right";if(!r[1])r[1]="middle";}q.type=ss.ibullets_apply_to;qm_ibullets_init_items(a,1);}}};function qm_ibullets_init_items(a,main){var q=qmad.ibullets;var aa,pf;aa=a.childNodes;for(var j=0;j<aa.length;j++){if(aa[j].tagName=="A"){if(window.attachEvent)aa[j].attachEvent("onmouseover",qm_ibullets_hover);else  if(window.addEventListener)aa[j].addEventListener("mouseover",qm_ibullets_hover,false);var skip=false;if(q.type!="all"){if(q.type=="parent"&&!aa[j].cdiv)skip=true;if(q.type=="non-parent"&&aa[j].cdiv)skip=true;}if(!skip){if(main)pf="m";else pf="s";if(q[pf+"img"]){var ii=document.createElement("IMG");ii.setAttribute("src",q[pf+"img"]);ii.setAttribute("width",q[pf+"imgwh"][0]);ii.setAttribute("height",q[pf+"imgwh"][1]);ii.style.borderWidth="0px";ii.style.position="absolute";var ss=document.createElement("SPAN");var s1=ss.style;s1.display="block";s1.position="relative";s1.fontSize="1px";s1.lineHeight="0px";s1.zIndex=1;ss.ibhalign=q[pf+"align"][0];ss.ibvalign=q[pf+"align"][1];ss.ibiw=q[pf+"imgwh"][0];ss.ibih=q[pf+"imgwh"][1];ss.ibposx=q[pf+"pos"][0];ss.ibposy=q[pf+"pos"][1];qm_ibullets_position(aa[j],ss);ss.appendChild(ii);aa[j].qmibullet=aa[j].insertBefore(ss,aa[j].firstChild);aa[j]["qmibullet"+pf+"a"]=q[pf+"img_a"];aa[j]["qmibullet"+pf+"h"]=q[pf+"img_h"];aa[j].qmibulletorig=q[pf+"img"];ss.setAttribute("qmvbefore",1);ss.setAttribute("isibullet",1);if(aa[j].className.indexOf("qmactive")+1)qm_ibullets_active(aa[j]);}}if(aa[j].cdiv)new qm_ibullets_init_items(aa[j].cdiv);}}};function qm_adds_gmc(a){while(!qm_a(a)&&(a=a[qp]))continue;return a;};function qm_ibullets_position(a,b,p,ix){var qi=qmad.ibullets;if(p){a=qi[p][ix-1][0];b=qi[p][ix-1][1];}if(!a.offsetWidth||!a.offsetHeight){if(!p){var ti="q_"+qm_adds_gmc(a).id;if(!qi[ti])qi[ti]=new Array();qi[ti].push(new Array(a,b));p=ti;ix=qi[ti].length;}setTimeout("qm_ibullets_position(null,null,'"+p+"',"+ix+")",10);}else {if(b.ibhalign=="right")b.style.left=(a.offsetWidth+parseInt(b.ibposx)-b.ibiw)+"px";else  if(b.ibhalign=="center")b.style.left=(parseInt(a.offsetWidth/2)-parseInt(b.ibiw/2)+parseInt(b.ibposx))+"px";else b.style.left=b.ibposx+"px";if(b.ibvalign=="bottom")b.style.top=(a.offsetHeight+parseInt(b.ibposy)-b.ibih)+"px";else  if(b.ibvalign=="middle")b.style.top=parseInt((a.offsetHeight/2)-parseInt(b.ibih/2)+parseInt(b.ibposy))+"px";else b.style.top=b.ibposy+"px";}};function qm_ibullets_hover(e,targ){e=e||window.event;if(!targ){var targ=e.srcElement||e.target;while(targ.tagName!="A")targ=targ[qp];}var ch=qmad.ibullets.lasth;if(ch&&ch!=targ){qm_ibullets_hover_off(new Object(),ch);}if(targ.className.indexOf("qmactive")+1)return;var wo=targ.qmibullet;var ma=targ.qmibulletmh;var sa=targ.qmibulletsh;if(wo&&(ma||sa)){var ti=ma;if(sa&&sa!=undefined)ti=sa;if(ma&&ma!=undefined)ti=ma;wo.firstChild.src=ti;qmad.ibullets.lasth=targ;}if(e)qm_kille(e);};function qm_ibullets_hover_off(e,o){if(!o)o=qmad.ibullets.lasth;if(o&&o.className.indexOf("qmactive")==-1){var os=o.getElementsByTagName("SPAN");for(var i=0;i<os.length;i++){if(os[i].getAttribute("isibullet"))os[i].firstChild.src=o.qmibulletorig;}}};function qm_ibullets_active(a,hide){var wo=a.qmibullet;var ma=a.qmibulletma;var sa=a.qmibulletsa;if(!hide&&a.className.indexOf("qmactive")==-1)return;if(hide&&a.idiv){var o=a.idiv;var os=o.getElementsByTagName("SPAN");for(var i=0;i<os.length;i++){if(os[i].getAttribute("isibullet"))os[i].firstChild.src=o.qmibulletorig;}}else {if(!a.cdiv.offsetWidth)a.cdiv.style.visibility="inherit";if(a.cdiv){var aa=a.cdiv.childNodes;for(var i=0;i<aa.length;i++){if(aa[i].tagName=="A"&&aa[i].qmibullet)qm_ibullets_position(aa[i],aa[i].qmibullet);}}if(wo&&(ma||sa)){var ti=ma;if(sa&&sa!=undefined)ti=sa;if(ma&&ma!=undefined)ti=ma;wo.firstChild.src=ti;}}}/* ]]> */</SCRIPT>
			

<script language="JavaScript">
<!--
// Store the date In avarlable
d = new Date()
dateText = ""
// Get the cuurent day and convert it to the name of the day
dayValue = d.getDay()
if(dayValue == 0)
dateText += "Chủ nhật, "
else if (dayValue == 1)
dateText += "Thứ hai, "
else if (dayValue == 2)
dateText += "Thứ Ba, "
else if (dayValue == 3)
dateText += "Thứ Tư, "
else if (dayValue == 4)
dateText += "Thứ Năm, "
else if (dayValue == 5)
dateText += "Thứ Sáu, "
else if (dayValue == 6)
dateText += "Thứ Bảy, "
// Get the current date; if it's before 2000,add 1900
dateText +=d.getDate()
// l?y tháng hi?n t?i và chuy?n nó sang tháng theo ti?ng Vi?t Nam
monthValue =d.getMonth()
dateText += ""
if (monthValue == 0)
dateText += " - 1"
if (monthValue == 1)
dateText += " - 2"
if (monthValue == 2)
dateText += " - 3"
if (monthValue == 3)
dateText += " - 4"
if (monthValue == 4)
dateText += " - 5"
if (monthValue == 5)
dateText += " Tháng 6"
if (monthValue == 6)
dateText += " - 7"
if (monthValue == 7)
dateText += " - 8"
if (monthValue == 8)
dateText += " - 9"
if (monthValue == 9)
dateText += " - 10"
if (monthValue == 10)
dateText += " - 11"
if (monthValue == 11)
dateText += " -12"
// Get the current year; if it's before 2000, add 1900
if (d.getYear() < 2000)
dateText += " - " + (1900 + d.getYear())
else
dateText += " - " + (d.getYear())
// Get the current minutes
minuteValue = d.getMinutes()
if (minuteValue < 10)
minuteValue = "0" + minuteValue
// Get the current hours
hourValue = d.getHours()
// Customize the greeting based on the current hours
// Write the greeting, the date, and the time to the page
-->
</script>

	<title>Nong Nghiep Hung Loc</title>
    
</head>

<body>

    <!-- bat dau warrper -->
    <div id="wrapper">
       
        <!-- bat dau header -->
        <div id="header">
            <!-- bat dau banner -->
            
            
        
            <div id="banner">
                
                 <object id="Object2" width="972" height="152" border="0" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000">
                    <param value="flash/center.swf" name="movie">
                    <param value="High" name="quality">
                    <param value="transparent" name="wmode">
                    <embed width="972" height="152" type="application/x-shockwave-flash" src="flash/center.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" name="obj1">
            </object>
             </div>
            <!-- ket thuc banner -->
            
            <!-- bat dau menutop -->
            <div id="menu_top">
                <div id="ngay">
                       <ul> 
                            <li>
                                <a><script>document.write(  dateText + " ")</script></a>
                           </li>
                       </ul>
                  </div>
                  <div id="ddtopmenubar" class="mattblackmenu">  
                        <ul>
                            <li>
                                <a href="<?php echo '?page=trangchu&maloaitintuc=1' ?>" class="trangchu" style="border-left: none;">Trang chủ</a>
                            </li>
                            
                             <li>
                                <a href="<?php echo '?page=gioithieutrungtam' ?>" class="gioithieu">giới thiệu trung tâm</a>
                            </li>
                            <li>
                                <a href="#" rel="ddsubmenu2" class="tintuc">tin tức</a>
                                
                            </li>
                             <li>
                                <a href="<?php echo '?page=tulieulichsu' ?>" class="tulieulichsu">tư liệu lịch sử</a>
                            </li>
                             <li>
                                <a href="#" class="hoptac" rel="ddsubmenu1">hợp tác</a>
                                
                            </li>
                  
                            <li>
                                <a href="<?php echo '?page=lienhe' ?>" class="lienhe">liên hệ</a>
                            </li>
                        </ul>
                  </div>
              
                                <ul id="ddsubmenu2" class="ddsubmenustyle">
                                    <?php
                                        $sql='select * from tbl_loai_tin_tuc ';
                                        $kq=tep_db_query($sql);
                                        while($item=tep_db_fetch_array($kq)){  
                                    ?>
                                            <li>
                                                <a href="<?php echo '?maloaitintuc='.$item['id'].''?>"><?php echo ''.$item['ten_loai_tin_tuc'].'' ?></a>
                                            </li>
                                     <?php } ?>
                                </ul>
                                
                                <ul id="ddsubmenu1" class="ddsubmenustyle">
                                    <?php
                                        $sql='select * from tbl_loai_hop_tac ';
                                        $kq=tep_db_query($sql);
                                        while($item=tep_db_fetch_array($kq)){  
                                    ?>
                                            <li>
                                                <a href="<?php echo '?maloaihoptac='.$item['id'].''?>"><?php echo ''.$item['ten_loai_hop_tac'].'' ?></a>
                                            </li>
                                     <?php } ?>
                                </ul>
                    
            </div>
            <!-- ket thuc menutop -->
        
        <!-- ket thuc header -->    
        </div>
        
        <div id="duongvien">
         <MARQUEE  height="30" sscrollAmount="1" direction="left" loop="true" truespeed scrolldelay="160" onMouseOver="this.stop()" onMouseOut="this.start()">
                 
            <?php
                 $sql='select * from tbl_chu_chay ';
                 $kq=tep_db_query($sql);
                 $item=tep_db_fetch_array($kq);
                 echo '<p>'.$item['noi_dung'].'</p>'
            ?>
            </MARQUEE>
        </div>
        <!-- bat dau main -->
        <div id="main">
            <!-- bat dau menu left -->
            
            <div id="menu_left">
            
                <!-- bat dau DVNC -->
                <div id="DVNC">
                     <div class="tieude" id="tieude_donvinghiencuu" ><h3>đơn vị nghiên cứu</h3></div>
                      <div id="danhmucDVNC">
                        <ul>
                            <?php
                                $sql='select * from tbl_danh_muc_don_vi_nghien_cuu ';
                                $kq=tep_db_query($sql);
                                while($item=tep_db_fetch_array($kq)){  
                            ?>
                                    <li>
                                        <a href="<?php echo '?madanhmucdonvinghiencuu='.$item['id'].''?>"><?php echo ''.$item['ten_danh_muc_don_vi_nghien_cuu'].'' ?></a>
                                    </li>
                            <?php } ?>
                            
                        </ul> 
                    </div>
                </div>
                <!-- ket thuc DVNC --> 
                
                <!-- bat dau HDKHCN -->  
                <div id="HDKHCN">
                    <div class="tieude" id="tieude_HDKHCN" ><h3>hoạt động KHCN</h3></div>
                    <div id="danhmucHDKHCN">
                        <ul>
                            <?php
                                $sql='select * from tbl_danh_muc_hoat_dong_khcn ';
                                $kq=tep_db_query($sql);
                                while($item=tep_db_fetch_array($kq)){  
                            ?>
                                    <li>
                                        <a href="<?php echo '?madanhmuchoatdongkhcn='.$item['id'].''?>"><?php echo ''.$item['ten_danh_muc_hoat_dong'].'' ?></a>
                                    </li>
                            <?php } ?>
                            
                        </ul> 
                    </div>
                </div>
                <!-- ket thuc HDKHCN -->
                
                <!-- bat dau SP_KHCN -->
               <div id="SP_KHCN" >
                    <div   class="tieude"><h3>sản phẩm KHCN</h3></div>
                    <div id="danhmucsanpham">
                        <ul class='qmmc' id='qm0'>
                            <?php
                                $sql='select * from tbl_danh_muc_san_pham ';
                                $kq=tep_db_query($sql);
                                while($item=tep_db_fetch_array($kq)){  
                            ?>
                                    <li>
                                        <a href="<?php echo '?madanhmucsanpham='.$item['id'].''?>"><?php echo ''.$item['ten_danh_muc_san_pham'].'' ?></a>
                                        <ul>
                                            <?php
                                                $sql1='select * from tbl_san_pham where ma_danh_muc_san_pham='.$item['id'].' ';
                                                $kq1=tep_db_query($sql1);
                                                while($item1=tep_db_fetch_array($kq1)){  
                                            ?>
                                                <li>
                                                    <a href="<?php echo '?page=sanphamkhcn&masanpham='.$item1['id'].''?>"><?php echo ''.$item1['ten_san_pham'].'' ?></a>
                                                </li>
                                            <?php } ?>
                                        </ul>
                                    </li>
                            <?php } ?>
                            
                        </ul> 
                        <script type="text/javascript">
                        qm_create(0,true,250,250,false,false,false,false,false);
                        </script>
                    </div>
                </div>
                 <!-- ket thuc SP_KHCN -->
                 
                <!-- bat dau TTCB --> 
                <div id="TTCB" >
                    <div class="tieude" id="tieude_thongtincanbo"><h3>Thông tin cán bộ</h3></div>
                    <div id="thongtincanbo">
                        <ul>
                            <?php
                                $sql='select * from tbl_thong_tin_can_bo ';
                                $kq=tep_db_query($sql);
                                while($item=tep_db_fetch_array($kq)){  
                            ?>
                                    <li>
                                        <a href="<?php echo '?page=thongtincanbo&mathongtincanbo='.$item['id'].''?>"><?php echo ''.$item['tieu_de'].'' ?></a>
                                    </li>
                            <?php } ?>
                            
                        </ul> 
                    </div>
                </div>
                <!-- ket thuc TTCB -->
                
                <!-- bat dau STHDKT -->
                <div id="STHDKT">
                    <div class="tieude" id="tieude_STHDKT"><h3>sổ tay hướng dẫn kỹ thuật</h3></div>
                    <ul>
                        <li><a href="<?php echo '?page=sotayhuongdan' ?>"> hướng dẫn kỹ thuật</a></li>
                    </ul>
                </div>
                <!-- ket thuc STHDKY -->
                
                <!-- bat dau HDDT -->
                 <div id="HDDT">
                    <div class="tieude" id="tieude_HDDT"><h3>hoạt động đoàn thể</h3></div>
                    <div id="hoatdongdoanthe">
                        <ul>
                            <?php
                                $sql='select * from tbl_loai_hoat_dong_doan_the ';
                                $kq=tep_db_query($sql);
                                while($item=tep_db_fetch_array($kq)){  
                            ?>
                                    <li>
                                        <a href="<?php echo '?maloaihoatdongdoanthe='.$item['id'].''?>"><?php echo ''.$item['ten_loai_hoat_dong_doan_the'].'' ?></a>
                                    </li>
                            <?php } ?>
                            
                        </ul> 
                    </div>
                    
                </div>
                <!-- ket thuc HDDT -->
                
                
               <!-- bat dau TK -->
                <div id="TK" >
                    <div class="tieude" id="tieude_TK"><h3>thống kê</h3></div>
                    <div id="thongkewebsite">
                    <div id="hinh_web"><img src="images/hinh_web.jpg"/></div>
                    <div id="thongtin">
                        <p>online:&nbsp;<?php echo '0'.$user_online; ?></p>
                        <p>tổng lượt:&nbsp;<?php echo $page_visited; ?></p>
                    </div>
                    
                  
                 </div>  
                </div>
                <!-- ket thuc TK -->
            </div>
                          
           
            <!-- ket thuc menu left -->
            
            
            
            <!-- bat dau content -->
            <div id="content">
                <!-- bat dau center -->
                <?php
                    if(isset($_GET['madanhmucdonvinghiencuu'])) 
                    {
                        require_once('donvinghiencuu.php');
                    }
                     elseif(isset($_GET['madanhmuchoatdongkhcn'])) 
                    {
                        require_once('hoatdongkhcn.php');
                    }
                    elseif(isset($_GET['page']) && $_GET['page']=='sanphamkhcn') 
                    {
                        require_once('sanphamkhcn.php');
                    }
                    elseif(isset($_GET['page']) && $_GET['page']=='thongtincanbo') 
                    {
                        require_once('thongtincanbo.php');
                    }
                    elseif(isset($_GET['macanbo'])) 
                    {
                        require_once('chitietthongtincanbo.php');
                    }
                    elseif(isset($_GET['maloaihoatdongdoanthe'])) 
                    {
                        require_once('hoatdongdoanthe.php');
                    }
                    elseif(isset($_GET['page']) && $_GET['page']=='lienhe') 
                    {
                        require_once('lienhe.php');
                    }
                    elseif(isset($_GET['page']) && $_GET['page']=='gioithieutrungtam') 
                    {
                        require_once('gioithieutrungtam.php');
                    }
                    elseif(isset($_GET['maloaihoptac'])) 
                    {
                        require_once('hoptac.php');
                    }
                     elseif(isset($_GET['mahinhanhtrungtam'])) 
                    {
                        require_once('hinhanhtrungtam.php');
                    }
                     elseif(isset($_GET['maloaitintuc'])) 
                    {
                        require_once('tintuc.php');
                    }
                    elseif(isset($_GET['page']) && $_GET['page']=='tulieulichsu'){
                        require_once('tulieulichsu.php');
                    } 
                    elseif(isset($_GET['page']) && $_GET['page']=='sotayhuongdan') 
                    {
                        require_once('sotayhuongdan.php');
                    }
                    else{
                        
                        require_once('content_index.php');
                        ?>
                
                        
                <?php        
                    }
                ?>            
                <!-- ket thuc center -->
                
                
                <!-- bat dau menu right -->
                <div id="menu_right">
                  <div id="hinhanhtrungtam">
                    <div class="tieude" id="tieude_sanphamtieubieu"><h3>hình ảnh trung tâm</h3></div>
                    <MARQUEE  height="700" sscrollAmount="1" direction="up" loop="true" truespeed scrolldelay="160" onMouseOver="this.stop()" onMouseOut="this.start()">
                 
                    <div class="hinhanh_trungtam">
                            <?php
                                $sql='select * from tbl_hinh_anh_trung_tam ';
                                $kq=tep_db_query($sql);
                                while($item=tep_db_fetch_array($kq)){  
                            ?>
                                    <p >
                                        <a href="<?php echo '?mahinhanhtrungtam='.$item['id'].''?>"><img width="195px" height="170px" style="border: 1px solid gray;" src="<?php echo 'admincp/upload/'.$item['hinh_anh'].'' ?>"/></a>
                                    <p>
                            <?php } ?>
                            
                         
                    </div></MARQUEE>
                  </div> 
                  <div class="lienketweb">
                    <div class="tieude"><h3>liên kết website</h3></div>
                    <select class="lienket" onChange="MM_jumpMenu('parent',this,0)">
                      <option value="http://www.iasvn.org">1. Trang Liên Kết</option>
                            <?php $sql3='select * from tbl_lien_ket_web';
                                    $kq3=tep_db_query($sql3);
                                    while($item=tep_db_fetch_array($kq3)){
                                    
                                        echo '<option value="'.$item['link_lien_ket'].'">'.$item['tieu_de'].'</option>' ;
                                      
                                    }
                             ?>
                            
                    </select>
                  </div> 
                </div> 
                         
                <!-- ket thuc menu right -->                
             <div class="clear"></div>
            
            <!-- ket thuc content -->
        </div>
        </div>
        <!-- ket thuc main -->
        
        <!-- bat dau footer -->
        
        <div id="footer">
            <div class="duongngangfooter"></div>
           
             <div id="noidung_footer">
                <div class="desgin">Copyright © 2010 - www.harc-isa.org<br/>
                    Thiết kế bởi:<a href="http://www.vietconnet.com" style="font-weight: bold; color: yellow;text-decoration: none;"> MẠNG KẾT NỐI VIỆT</a>
                </div>
                <div class="tt_cong_ty">
                    <p >Địa Chỉ: Xã Hưng Thịnh, Huyện Trảng Bom, Ðồng Nai<br />
                        Ðiện Thoại: 061.3868146 - Fax: 0613868632<br />
                        Email:info@harc-ias.org - website:www.harc-ias.org
                        
                    </p>
                </div>
           
        </div>
            
           
        </div>
        <!-- ket thuc footer -->
    
    </div>
    
    
    <!-- ket thuc warrper -->

</body>
</html>